package com.hsp.extend_.improve_;

//父类，是pupil和graduate的父类
public class Student {
    //共有的属性
    public  String name;
    public int age;
    private double score;

    //共有的方法
    public void setScore(double score) {
        this.score = score;
    }

    public void showinfo(){
        System.out.println("学生名字是 "+name+" 年龄"+age+" 成绩 "+score);
    }
}
